
Graphimation{

	noOfGeometries 1
	Computation Text{
		text computation
		font Courier
		size 60
		x 300
		y 130
		w 500
		h 100

		hitTest 0
	}
	
	noOfBrushes 1
	TextBrush SolidColorBrush{ Color{ 0.6 0.3 0.3 1 } opacity $text }

	noOfTransforms 14
	RepetitionScale Scale{ x $RepS y $RepS }

	D1T Translation{ x $D1Tx y 50 }
	D2T Translation{ x $D2Tx y 100 }
	D3T Translation{ x $D3Tx y 200 }
	D4T Translation{ x $D4Tx y 300 }
	D5T Translation{ x $D5Tx y 400 }

	D68S Scale{ x 3 y 3 }
	D68T Translation{ x -100 y -20 }

	G1T Translation{ x 20 y 500 }
	G1S Scale{ x 2 y 2 }
	G2T Translation{ x 100 y 100 }
	G2S Scale{ x 0.7 y 0.7 }
	G3T Translation{ x 500 y 340 }
	G3S Scale{ x -1 y 1 }


	noOfChildGxms 2
	Gear Graphimation{ data/patterns/gear.d2g }
	Digits Graphimation{ data/patterns/digits.d2g }

	noOfExecutables 1
	Main Procedure{
		noOfCommands 46

		PushTransform{ G1T }		
		PushTransform{ G1S }		
		RenderGxm{ Gear }
		PopTransform{ }
		PopTransform{ }

		PushTransform{ G2T }		
		PushTransform{ G2S }		
		RenderGxm{ Gear }
		PopTransform{ }
		PopTransform{ }

		PushTransform{ G3T }
		PushTransform{ G3S }		
		RenderGxm{ Gear }
		PopTransform{ }
		PopTransform{ }

		PushTransform{ D1T }
		RenderGxm{ Digits }
		PopTransform{ }

		PushTransform{ D2T }
		RenderGxm{ Digits }
		PopTransform{ }

		PushTransform{ D3T }
		RenderGxm{ Digits }
		PopTransform{ }

		PushTransform{ D4T }
		RenderGxm{ Digits }
		PopTransform{ }

		PushTransform{ D5T }
		RenderGxm{ Digits }
		PopTransform{ }

		PushTransform{ D68S }
		PushTransform{ D68T }

		PushTransform{ D1T }
		RenderGxm{ Digits }
		PopTransform{ }

		PushTransform{ D2T }
		RenderGxm{ Digits }
		PopTransform{ }

		PushTransform{ D3T }
		RenderGxm{ Digits }
		PopTransform{ }

		PopTransform{ }
		PopTransform{ }

		PushTransform{ RepetitionScale }
		Fill{ Computation TextBrush }
		PopTransform{ }
	}

	noOfControllers 1
	CMain Const{
		target null
		begin 0
		end 22000
		loops 1

		value 0

		noOfChildren 9
		Linear{
			target $RepS
			begin 0
			end 22000
			loops 0

			beginValue 0.9
			endValue 1.4

			noOfChildren 0
		}

		Const{
			target $text
			begin 0
			end 11000
			loops 0

			value 0
			noOfChildren 0
		}
		Linear{
			target $text
			begin 10000
			end 11000
			loops 0

			beginValue 0
			endValue 1

			noOfChildren 0
		}
		Const{
			target $text
			begin 13000
			end 22000
			loops 0

			value 1
			noOfChildren 0
		}
		Linear{
			target $D1Tx
			begin 0
			end 22000
			loops 1

			beginValue 0
			endValue 400

			noOfChildren 0
		}
		Linear{
			target $D2Tx
			begin 0
			end 22000
			loops 1

			beginValue 600
			endValue 200

			noOfChildren 0
		}
		Linear{
			target $D3Tx
			begin 0
			end 22000
			loops 1

			beginValue 250
			endValue 350

			noOfChildren 0
		}
		Linear{
			target $D4Tx
			begin 0
			end 22000
			loops 1

			beginValue 200
			endValue 0

			noOfChildren 0
		}
		Linear{
			target $D5Tx
			begin 0
			end 22000
			loops 1

			beginValue 500
			endValue 900

			noOfChildren 0
		}
	}
	

	noOfAnimations 1
	MainAnim Animation{
		renderFunction Main
		controller CMain
		transitionTarget null
	}
}